package lab02.test05;

class Cube {
    private double length;//定义成员变量
    private double wide;
    private double high;

    Cube() {
        this.length = 0;
        this.wide = 0;
        this.high = 0;
    }


    //单独定义体积的算法
    double volume() {
        return this.length * this.wide * this.high;
    }
    //自定的立方体
    void mycude(){
        this.length = 3;
        this.wide = 4;
        this.high = 5;
    }

}
